Gamer Boards Video Game Message Boards   New! Play Games and Compete with others in the Arcade!

Go Back   Gamer Boards Video Game Message Boards > Game Talk > Game Genie Code Creators Club
Welcome, Chemist.
You last visited: Today at 04:18 PM
Private Messages: Unread 0, Total 0.
User CP FAQ Members List Calendar Arcade New Posts Quick Links Log Out


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-01-2003, 12:22 PM   #1
Chemist
Registered User
 
Join Date: Nov 2003
Location: ex-USSR
Posts: 15 Chemist is off the scale
Send a message via ICQ to Chemist
Where can I get hexademical equivalents of the Motorola 68000 assembler commands?

Tell me please, where can I get hexademical equivalents of the Motorola 68000 assembler commands?
__________________
Thanks for attention.

Chemist.
Chemist is online now Add to Chemist's Reputation   Edit/Delete Message Reply With Quote Quick reply to this message
Old 12-01-2003, 05:56 PM   #2
Tony Hedstrom
Registered User
 
Join Date: Jun 2002
Posts: 274 Tony Hedstrom is off the scale
I've never been able to find any on the internet. The best way to get them is to use a Sega Genesis disassembler on any Genesis game, and then read the file to find the info you need. To find a Disassembler, just do a Google search for: sega-asm.zip
Tony Hedstrom is offline Add to Tony Hedstrom's Reputation Report Bad Post   Reply With Quote Quick reply to this message
Old 12-02-2003, 04:14 AM   #3
Chemist
Registered User
 
Join Date: Nov 2003
Location: ex-USSR
Posts: 15 Chemist is off the scale
Send a message via ICQ to Chemist
Thanks for answer.
I can't find this kind of information in the sega-asm.zip docs... I'll try to read disassemled code (with comments?) There are two (at least) hex equivalents of the m68k assembler instructions, mentiooned in your FAQ:
1. 60xx - BRAnch
2. 5338 - SUBstract

Where did you find these ones? Simply using disasm?

P.S. I've finally found The Motorola 68000 Programmers Reference manual in the i-net. Here's the part of the description of BRA instruction:

BRA

Branch always.
.
.
.
Instruction format:
0 1 1 0 0 0 0 0 [x]

[x] - 8-bit displacement.

01100000 (bin) = 60 (hex) - 60xx in your doc
It means that "60" is hex equivalent of the BRA instruction. Am I right? If you say "yes":

Here is description of SUB instruction:

SUB

Substract.
.
.
.
Instruction format:
1 0 0 1 [xx]

[xx] - 3 bites of the "Register", 3 bits of the "Opmode" and 6 bits of the "Effective Address" (I don't know about these things well)

BUT:
1001(bin) = 9(hex)
or 1001xxxx=9x(hex)

But in your manual, hex eq. of the SUB instruction is "5338". But, in any case, 9x(hex) isn't equals 53(hex). What's wrong in my results/with me?
__________________
Thanks for attention.

Chemist.

Last edited by Chemist : 12-02-2003 at 04:46 AM.
Chemist is online now Add to Chemist's Reputation   Edit/Delete Message Reply With Quote Quick reply to this message
Old 12-02-2003, 06:17 PM   #4
Tony Hedstrom
Registered User
 
Join Date: Jun 2002
Posts: 274 Tony Hedstrom is off the scale
You won't find the info you need just by reading the stuff in the sega-asm.zip file, you need to use the program and disassemble a Genesis game, then the disassembled game file will tell you what each instruction is.

Here's an example:

00017F02: 5378 00FF7104 SUBQ.W #$1,$00FF7104

That's telling you that 5378 is a SUBQ.W instruction. The RAM address that it's subtracting from is 00FF7104.

Once you find out what the instruction is, then you can look it up in the Motorola 68000 manual to find out what it does.
Tony Hedstrom is offline Add to Tony Hedstrom's Reputation Report Bad Post   Reply With Quote Quick reply to this message
Old 12-03-2003, 11:52 AM   #5
Chemist
Registered User
 
Join Date: Nov 2003
Location: ex-USSR
Posts: 15 Chemist is off the scale
Send a message via ICQ to Chemist
Thank you for explanations.
__________________
Thanks for attention.

Chemist.
Chemist is online now Add to Chemist's Reputation   Edit/Delete Message Reply With Quote Quick reply to this message
Reply


Quick Reply
Message:
Bold
Italic
Underline
Wrap [QUOTE] Tags
Options


Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 04:59 PM.


Powered by: vBulletin Version 3.0.1
Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Copyright 1998-2002, VideoGameSource.com, a division of Aquamarine Technologies, Inc.